<!--include:header.html-->
<div id="main" class="clear">
    <div class="main-content" id="blog-list">
        <!--if($userData || $categoryData)-->
        <div id="blog-bread">
            <!--if($userData)-->
            <span>作者：{{$userData->nickName}} <span class="user-desc">{{$userData->desc}}</span></span>
            <!--endif-->
            <!--if($categoryData)-->
            <span>分类：{{$categoryData->name}} <span class="category-desc">{{$categoryData->desc}}</span></span>
            <!--endif-->
        </div>
        <!--endif-->
        <!--if(!$blogData['blog'])-->
        <div class="blog-item">
            <div class="top">
                <h2 class="title">没有更多内容啦！</h2>
            </div>
        </div>
        <!--endif-->
        <!--foreach($blogData['blog'] as $blog)-->
        <div class="blog-item">
            <div class="top">
                <a class="comments" href="/p/{{$blog->nodeKey}}.html">{{$blog->commentCount}}</a>
                <h2 class="title"><a href="/p/{{$blog->nodeKey}}.html">{{$blog->title}}</a></h2>
                <span class="time">{{date('m.d',$blog->createDate)}}</span>
            </div>
            <div class="content">{{$blog->desc}}</div>
            <div class="meta clear">
                <a class="right more" href="/p/{{$blog->nodeKey}}.html">阅读全文</a>
                <span class="author">作者：<a href="/author/{{$blog->userId}}/">{{$blog->userName}}</a></span>
                <span class="category">分类：<a href="/category/{{$blog->categoryKey}}/">{{$blog->categoryName}}</a></span>
            </div>
        </div>
        <!--endforeach-->
        <div class="blog-item blog-item-pager">
            <span class="all">({{$blogData['count']['begin']}} - {{$blogData['count']['end']}} / {{$blogData['count']['all']}})</span>
            <!--for($i = 1;$i<=$blogData['count']['pages'];$i++)-->
            <!--if($blogData['count']['current'] == $i)-->
            <a class="page current" href="{{$pageUrl.$i}}/">{{$i}}</a>
            <!--else-->
            <a class="page" href="{{$pageUrl.$i}}/">{{$i}}</a>
            <!--endif-->
            <!--endforeach-->
        </div>
    </div>
    {{$sideHtml}}
</div>
<!--include:footer.html-->